﻿using AutoMapper;
using BCDto.Sim.Company.Department;
using BCEntity.Sim.Company.Department;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MapperProfiles.Sim.Company.Department
{
    public class DepartmentProfile : Profile
    {
        public DepartmentProfile()
        {
            CreateMap<DepartmentEntity, DepartmentDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DepartmentDto, DepartmentEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DepartmentRequestDto, DepartmentEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<DepartmentPrincipalDto, DepartmentPrincipalEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DepartmentPrincipalEntity, DepartmentPrincipalDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            
        }
    }
}
